//
//  FFATPluginsViewController.h
//  FFSurveillance
//
//  Created by roro_latrobe on 16/10/28.
//  Copyright © 2016年 cn.wanda. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FFATPluginsView.h"
#import "FFATManager.h"
#import "FFATPosition.h"
#import "FFSDCDataModel.h"

NS_ASSUME_NONNULL_BEGIN

@class FFATPluginsViewController;

@protocol FFATDelegate <NSObject>

//! 有多少个插件
- (NSInteger)numberOfItemsInViewController:(FFATPluginsViewController *)viewController;

//! 具体某个插件
- (FFATPluginsView *)viewController:(FFATPluginsViewController *)viewController itemViewAtPosition:(FFATPosition *)position;

//! 选中某个插件
- (void)viewController:(FFATPluginsViewController *)viewController didSelectedAtPosition:(FFATPosition *)position;

@end


@interface FFATPluginsViewController : UIResponder

- (instancetype)initWithItems:(nullable NSArray<FFATPluginsView *> *)items NS_DESIGNATED_INITIALIZER;
- (void)loadUI;

@property (nonatomic, strong) FFATPluginsView *backItem;
@property (nonatomic, strong) NSArray<FFATPluginsView *> *items;
@property (nonatomic, weak) id<FFATDelegate> delegate;
@property (nonatomic, strong) NSArray<FFSDCDataModel> *itemsData;



@end
NS_ASSUME_NONNULL_END
